//
//  OJStatus.h
//  openJira
//
//  Created by Vincent Demay on 30/04/10.
//  Copyright 2010 Goojet. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "OJConnector.h"
#import "OJXMLRPCModel.h"

@class OJXMLRPCModel;

@interface OJStatus : NSObject {
	NSString* name;
	NSString* description;
	NSString* icon;
	int lid;
	//TODO : Bitmap
}
@property (nonatomic, retain) NSString* name;
@property (nonatomic, retain) NSString* description;
@property (nonatomic, retain) NSString* icon;
@property (nonatomic) int lid;

@end


/////////////////////// OJPRIORITIESFILTER ////////////////////////
@protocol OJStatusListDelegate;

@interface OJStatusList : OJXMLRPCModel {
	NSMutableDictionary *statuses;
	id<OJStatusListDelegate> delegate;
}
@property (nonatomic, retain) NSMutableDictionary *statuses;
@property (nonatomic, assign) id<OJStatusListDelegate> delegate;
- (void) getStatuses;
@end


@protocol OJStatusListDelegate
- (void) object:(OJStatusList*) filter isReady:(BOOL) onError;

@end
